<?php

/*
 * CopyRight  : (C)2012-2099 HaoTeam Inc.
 * Document   : WechatAppAddonFleetGroupUser.php
 * Created on : 2021-2-28 13:41:00
 * Author     : Tiger <1192851302@qq.com>
 * Description: This is NOT a freeware, use is subject to license terms.
 *              这即使是一个免费软件,使用时也请遵守许可证条款,得到当时人书面许可.
 *              未经书面许可,不得翻版,翻版必究;版权归属 HaoTeam Inc;
 */

namespace miniapp\fleet\model;

use think\Model;

/**
 * 
 * Class WechatAppAddonFleetGroupUser
 * Tiger <1192851302@qq.com> 2021-2-28 13:41:00
 */
class WechatAppAddonFleetGroupUser extends Model {

    /**
     * 获取详情
     * @author Tiger <1192851302@qq.com>
     * @param type $where
     * @return type
     */
    public static function getInfo($where = []) {
        $model = self::alias('group_user')->join('wechat_app_addon_fleet_group group', 'group.id = group_user.group_id');
        return $model->where([
                    'status' => 1,
                    'group_user_status' => 1,
                    'group_user_is_del' => 0
                ])->where($where)->find();
    }

}
